﻿@if (Request.IsAuthenticated)
{
    if (User.IsInRole("Admin"))
    {
        <ul class="nav pull-right">    
            <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">@User.Identity.Name<b class="caret"></b></a>
                <span id="spanUserName" style="display:none">@User.Identity.Name</span>
                <ul class="dropdown-menu">
                    <li><a href="/Account/Manage">Manage Account</a></li>
                    <li><a href="/Admin/Sites">Manage Sites</a></li>
                    <li><a href="/Admin/Users">Manage Users</a></li>
                    <li><a href="/Admin/Configuration">Configuration</a></li>
                    <li><a href="/Admin/Reports">Reports</a></li>
                    <li>@using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" })) {
                        @Html.AntiForgeryToken()
                        <a class="dropddown-menu" href="javascript:document.getElementById('logoutForm').submit()">Log off</a> }
                    </li> 
                </ul>
            </li>
        </ul>
    }
}
